Package-level declarations

Types

Link copied to clipboard
class AnswerPreCheckoutQueryAction(preCheckoutQueryId: String, ok: Boolean = true, errorMessage: String? = null) : SimpleAction<Boolean>
Link copied to clipboard
class AnswerShippingQueryAction(shippingQueryId: String, ok: Boolean = true, shippingOptions: List<ShippingOption>? = null, errorMessage: String? = null) : SimpleAction<Boolean>
Link copied to clipboard

Functions

Link copied to clipboard

Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.

Link copied to clipboard
inline fun answerInlineQuery(inlineQueryId: String, vararg result: InlineQueryResult): AnswerInlineQueryAction

Use this method to send answers to an inline query. On success, True is returned. No more than 50 results per query are allowed.

Link copied to clipboard
inline fun answerPreCheckoutQuery(preCheckoutQueryId: String, ok: Boolean = true, errorMessage: String? = null): AnswerPreCheckoutQueryAction

Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.

Link copied to clipboard
inline fun answerShippingQuery(shippingQueryId: String, ok: Boolean = true, errorMessage: String? = null, vararg shippingOption: ShippingOption): AnswerShippingQueryAction
fun answerShippingQuery(shippingQueryId: String, ok: Boolean = true, errorMessage: String? = null, shippingOptions: ListingBuilder<ShippingOption>.() -> Unit): AnswerShippingQueryAction

inline fun answerShippingQuery(shippingQueryId: String, ok: Boolean = true, shippingOptions: List<ShippingOption>? = null, errorMessage: String? = null): AnswerShippingQueryAction

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.

Link copied to clipboard

Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned.